package com.hskn.hss.module.voiceIntercomGroup.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hskn.hss.module.voiceIntercom.entity.UserAvatar;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * 语音对讲
 *
 * @author lny
 * @date 2021-11-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class VoiceIntercomGroup implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id", name = "id")
    @TableField("id")
    private String id;

    @ApiModelProperty(value = "ids", name = "ids")
    @TableField(exist = false)
    private String ids;

    @ApiModelProperty(value = "群组号", name = "groupnum")
    @TableField("groupnum")
    private String groupnum;

    @ApiModelProperty(value = "群组名称", name = "groupname")
    @TableField("groupname")
    private String groupname;

    @ApiModelProperty(value = "用户id", name = "userid")
    @TableField("userid")
    private String userid;

    @ApiModelProperty(value = "用户头像", name = "userAvatar")
    @TableField(exist = false)
    private String userAvatar;

    @ApiModelProperty(value = "创建人ID", name = "createrid")
    @TableField("createrid")
    private String createrid;

    @ApiModelProperty(value = "创建时间", name = "createtime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField("createtime")
    private Date createtime;

    @ApiModelProperty(value = "最后通话时间", name = "lastcalltime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField("lastcalltime")
    private Date lastcalltime;

}
